Calculate the Power of a Number in C